package edu.gdkm.dao;


import edu.gdkm.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import
        org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Repository;
//使用@Repository注解将UserDaoImpl类标识为Spring中的Bean
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    @Autowired
    User user;
    public void save(){

        System.out.println(user);
        System.out.println("执行UserDaoImpl.save()");
    }
}